package com.xuanyuanxinyu.utils;

import android.util.Log;

/**
 * @author tanzh
 */
public class LogUtils {


    public static boolean isDebug = true;

    private static final String TAG = "LogUtils";
    private static final String RECORD_TAG = "3333333RECORD";
    private static final String DEVICE_TAG = "4444444RECORD";
    private static final String PICTURE_TAG = "5555555555RECORD";

    public static void init(boolean isDebug) {
        isDebug = isDebug;
    }


    public static void i(String message) {
        if (isDebug) {
            Log.i(TAG, "  " + message);
        }
    }

    public static void record(String message) {
        if (isDebug) {
            Log.e(RECORD_TAG, "当前线程名：" + Thread.currentThread().getName() + ",   Message= " + message);
        }
    }

    public static void device(String message) {
        if (isDebug) {
            Log.e(RECORD_TAG, "当前线程名：" + Thread.currentThread().getName() + ",   Message= " + message);
        }
    }

    public static void picture(String message) {
        if (isDebug) {
            Log.e(PICTURE_TAG, "当前线程名：" + Thread.currentThread().getName() + ",   Message= " + message);
        }
    }


    public static void picturei(String jsonString) {
        if (isDebug) {
            Log.i("4444444444444", "当前线程名：" + Thread.currentThread().getName() + ",   Message= " + jsonString);
        }
    }

    public static void i(String tag, String message) {
        if (isDebug) {
            Log.i(tag, "  " + message);
        }
    }

    public static void logError(String message) {
        if (isDebug) {
            Log.e(TAG, "  " + message);
        }
    }


    public static void logTest(String str) {
        if (isDebug) {
            Log.i("程序运行日志打印", str);
        }
    }




}